<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="tutorial.css">
<TITLE>
Search Support
</TITLE>
</HEAD>
<BODY >
<A HREF="tutorial074.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="tutorial070.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="tutorial076.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H2 CLASS="section"><A NAME="htoc146">10.5</A>&nbsp;&nbsp;Search Support</H2>

The
<A HREF="../bips/lib/ic_sets/insetdomain-4.html"><B>insetdomain/4</B></A><A NAME="@default280"></A>
predicate can be used to enumerate all ground instantiations of a set
variable, much like
<A HREF="../bips/lib/ic/indomain-1.html"><B>indomain/1</B></A><A NAME="@default281"></A>
in the finite domain case. 
Here is an example of the default enumeration strategy:
<BLOCKQUOTE CLASS="quote"><PRE CLASS="verbatim">
?-  X::[]..[1,2,3], insetdomain(X,_,_,_), writeln(X), fail.
[1, 2, 3]
[1, 2]
[1, 3]
[1]
[2, 3]
[2]
[3]
[]
</PRE></BLOCKQUOTE>
Other enumeration strategies can be selected (see the Reference Manual
on insetdomain/4).<BR>
<BR>
<HR>
<A HREF="tutorial074.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="tutorial070.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="tutorial076.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>
